package com.rimi.service;

import com.rimi.bean.Shopcar;

import java.util.List;

/**
 * @program: ECsystem
 * @Date: 2018/9/20 11:17
 * @Author: Mr.GuoQiang
 * @Description:
 */

public interface ShopcarService {

    /**
     * 根据shopid查询购物车
     * @param shopid
     * @return
     */
    Shopcar selectByShopId(Integer shopid);

    /**
     * 更新商品数量
     * @param record
     * @return
     */
    int updateByPrimaryKey(Shopcar record);

    int updateByPrimaryKeySelective(Shopcar record);

    /**
     * 添加商品到购物车
     * @param record
     * @return
     */
    int insert(Shopcar record);


    List<Shopcar> selectByExample();

    int deleteByPrimaryKey(Integer id);
    int deleteByExample();

}
